Conditions | 3 |
Total Lines | 14 |
Code Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | import Xdebug from '../extensions/php/xdebug' |
||
49 | disable = async (xdebug: Xdebug): Promise<boolean> => { |
||
50 | if (!(await xdebug.isInstalled())) { |
||
51 | warning('Extension xdebug is not installed. We do not need to disable it then...') |
||
52 | return false |
||
53 | } |
||
54 | |||
55 | if (!(await xdebug.isEnabled())) { |
||
56 | warning('Extension xdebug is not enabled.') |
||
57 | return false |
||
58 | } |
||
59 | |||
60 | await xdebug.disable() |
||
61 | |||
62 | return true |
||
63 | } |
||
67 | export default XdebugController |